import Mock from 'mockjs';
var Random = Mock.Random;
const host = "http://local/";
/**
 * banner 首页轮播
 * findlist 发现页商品列表数据
 * topic 最火话题
 * beauty 最美达人
 * commodity 最热商品
 * sponsor 发起页
 * sponsorenter 发起页点进
 * tindex 分类页
 * blusher 商品页
 * showbeauty 美丽推荐
 * showactivity 精选文章
 * 
 */

const data = Mock.mock('http://local/love/login/jean/123', {     
  'state': "本地数据"
});
// 首页轮播图
const banner = Mock.mock("http://local/love/main/banner", [{
      src: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_yingdaoye_banner.png'
    },
    {
      src: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_zuihuo_01.png'
    },
    {
      src: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_xuebianmeilishiping_1.png'
    }
  ]

)
// 发现页商品列表数据
const findlist = Mock.mock('http://local/love/find/itemlist', [{
    title: "彩妆界的奢侈品————Dior",
    topic: 293,
    comment: 34869,
    img: [
      'http://ot9lfn4ld.bkt.clouddn.com/IMG_yingdaoye2_04.png',
      'http://ot9lfn4ld.bkt.clouddn.com/IMG_yingdaoye2_05.png'
    ]
  },
  {
    title: "不管，就是喜欢YSL",
    topic: 189,
    comment: 23460,
    img: [
      'http://ot9lfn4ld.bkt.clouddn.com/IMG-faxian-06.png',
      'http://ot9lfn4ld.bkt.clouddn.com/IMG-faxian-07.png'
    ]
  }
])
// 图片地址随机
const randomimgurl = Mock.mock('http://local/love/imgurl', {
  // url:"@image(300)"
  "url|1-10": ["@image('200x400')"]
})
//最火话题
const topic = Mock.mock('http://local/love/topic', [{
    banner: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_bianmeixue_02.png',
    img: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_zuireshangping_5.png',
    content: '奥迪超实用日常妆',
    icon: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_zuireshangping_cat.png',
    name: 'Asura',
    state: 'http://ot9lfn4ld.bkt.clouddn.com/icon_wofaqide_talk.png',
    news: '245'
  },
  {
    banner: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_bianmeixue_02.png',
    img: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_shoucangyechanping_3.png',
    content: 'MAKE UP FOR EVER 单色眼影推荐',
    icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_zuihuo_02.png',
    name: '耳语小仙',
    state: 'http://ot9lfn4ld.bkt.clouddn.com/icon_wofaqide_talk.png',
    news: '421'
  },
  {
    banner: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_bianmeixue_02.png',
    img: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_shoucangyechanping_3.png',
    content: 'MAKE UP FOR EVER 单色眼影推荐',
    icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_zuihuo_02.png',
    name: '耳语小仙',
    state: 'http://ot9lfn4ld.bkt.clouddn.com/icon_wofaqide_talk.png',
    news: '421'
  }
])
//最美达人
const beauty = Mock.mock('http://local/love/beauty', [{
    banner: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_xuebianmeilishiping_3.png',
    icon: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_BANNER_3.png',
    name: '悦小舞',
    img: [
      'http://ot9lfn4ld.bkt.clouddn.com/IMG_zuimei_03.png',
      'http://ot9lfn4ld.bkt.clouddn.com/IMG_zuimei_04.png'
    ]
  },
  {
    banner: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_xuebianmeilishiping_3.png',
    icon: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_yingdaiye_01.png',
    name: '舞小雨',
    img: [
      'http://ot9lfn4ld.bkt.clouddn.com/IMG_zuimei_06.png',
      'http://ot9lfn4ld.bkt.clouddn.com/IMG_zuimei_07.png'
    ]
  }
])
//  最热商品
const commodity = Mock.mock('http://local/love/commodity', [{
    banner: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_xuebianmeilishiping_3.png',
    img: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_zuireshangping_5.png',
    content: '奥迪超实用日常妆九色眼影盘',
    icon: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_zuireshangping_eye.png',
    name: 'Asura',
    state: 'http://ot9lfn4ld.bkt.clouddn.com/icon_wofaqide_talk.png',
    news: '245'
  },
  {
    banner: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_xuebianmeilishiping_3.png',
    img: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_shoucangyechanping_3.png',
    content: 'MAKE UP FOR EVER 单色眼线',
    icon: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_zuireshangping_eye.png',
    name: '耳语小仙',
    state: 'http://ot9lfn4ld.bkt.clouddn.com/icon_wofaqide_talk.png',
    news: '421',
    print: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_zuireshangping_7.png',
    title: '香奈儿五号香水',
    shop: '天猫',
    money: '￥598'
  }
])

// 发起页
const sponsor = Mock.mock('http://local/love/sponsor', [{
  img: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_jingxuanwenzhang_3.png',
  title: "美丽的一天",
  time: 'http://ot9lfn4ld.bkt.clouddn.com/icon_shipingbofang_2.png',
  time_msg: '9天前',
  look: 'http://ot9lfn4ld.bkt.clouddn.com/icon_shipingbofang_3.png',
  look_msg: '3120',
  comment: 'http://ot9lfn4ld.bkt.clouddn.com/icon_shipingbofang_6.png',
  comment_msg: '30',
  like: 'http://ot9lfn4ld.bkt.clouddn.com/icon_shipingbofang_4.png',
  like_msg: '500'
}])

// 发起页点进
const sponsorenter = Mock.mock('http://local/love/sponsorenter', [{
    img: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_BANNER_3.png',
    nickname: 'Another',
    time: '2月1日5:21',
    fans: '217粉丝',
    banner: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_huodongtuijian_1.png',
    time: 'http://ot9lfn4ld.bkt.clouddn.com/icon_shipingbofang_2.png',
    time_msg: '9天前',
    look: 'http://ot9lfn4ld.bkt.clouddn.com/icon_shipingbofang_3.png',
    look_msg: '3120',
    comment: 'http://ot9lfn4ld.bkt.clouddn.com/icon_shipingbofang_6.png',
    comment_msg: '30',
    like: 'http://ot9lfn4ld.bkt.clouddn.com/icon_shipingbofang_4.png',
    like_msg: '500',
  },
  {
    icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_touxiang_03.png',
    name: '悦小舞',
    content: '喜欢这个产品',
    time: '23分钟前'
  },
  {
    icon: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_BANNER_5.png',
    name: '女神',
    content: '大爱啊',
    time: '30分钟前'
  },
  {
    icon: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_chanpingxiangqing_5.png',
    name: '女汉子',
    content: '爱的难舍难分',
    time: '33分钟前'
  }
])


// 分类页
const tindex = Mock.mock('http://local/love/tindex', [{
    title_icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_chanpingxiangqing_2.png',
    title: '魅力彩妆',
    makeup_icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_huazhuang.png',
    makeup: '化妆',
    foundation_icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_fendi.png',
    foundation: '粉底',
    blusher_icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_saihong.png',
    blusher: '腮红',
    Eyes_icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_yancai.png',
    Eyes: '眼彩',
    pencil_icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_meibi.png',
    pencil: '眉笔'
  },
  {
    title_icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_chanpingxiangqing_2.png',
    title: '面部护理',
    take_icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_xiezhuang.png',
    take: '卸妆',
    face_icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_jiemian.png',
    face: '洁面',
    nurse_icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_Tbuhuli.png',
    nurse: 'T部护理',
    front_icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_manbu.png',
    front: '面部护理',
    Eyes_icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_jingbuhuli.png',
    Eyes: '颈部护理',
    pencil_icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_yanbuhuli.png',
    pencil: '眼部护理'
  },
  {
    title_icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_chanpingxiangqing_2.png',
    title: '香水',
    take_icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_nvshixiangshui.png',
    take: '女士香水',
    face_icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_nanshixiangshui.png',
    face: '男士香水',
    nurse_icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_minixiangshui.png',
    nurse: '迷你香水',
    front_icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_xiangshuizouzhu.png',
    front: '香体走珠'
  }
])

// 商品页
const blusher = Mock.mock('http://local/love/blusher', [{
    img: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_shangpingye_01.png',
    title: '娇兰 限量款焕彩流星天使腮红',
    money: '￥420',
    icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_wofaqide_talk.png',
    news: '423'
  },
  {
    img: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_yingdaoye2_02-03.png',
    title: 'NARS 双色心机魅力腮红',
    money: '￥420',
    icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_wofaqide_talk.png',
    news: '245'
  },
  {
    img: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_shangpingye_03.png',
    title: 'PAUL&JOE 双色腮红',
    money: '￥230',
    icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_wofaqide_talk.png',
    news: '221'
  },
  {
    img: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_shangpingye_04.png',
    title: 'MAYSU单色唇颊两用胭脂',
    money: '￥130',
    icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_wofaqide_talk.png',
    news: '236'
  },
  {
    img: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_shangpingye_05.png',
    title: 'MAKE UP FOR EVER 单色腮红',
    money: '￥350',
    icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_wofaqide_talk.png',
    news: '455'
  },
  {
    img: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_shangpingye_06.png',
    title: '魔焰精灵蔷薇腮红',
    money: '￥170',
    icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_wofaqide_talk.png',
    news: '252'
  },
  {
    img: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_shangpingye_04.png',
    title: 'MAYSU单色唇颊两用胭脂',
    money: '￥130',
    icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_wofaqide_talk.png',
    news: '236'
  },
  {
    img: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_shangpingye_05.png',
    title: 'MAKE UP FOR EVER 单色腮红',
    money: '￥350',
    icon: 'http://ot9lfn4ld.bkt.clouddn.com/icon_wofaqide_talk.png',
    news: '455'
  }
])
//美丽推荐
const showbeauty = Mock.mock(host + 'love/showbeauty', {
  "data|1-4": [{
    "username|1": ['舞小悦', '舞悦', '舞大悦', '悦悦'],
    portrait: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_liaotianjiemian_1.png',
    img: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_huodongtuijian_1.png'
  }]
})
//展示文章
const showactivity = Mock.mock(host + 'love/showactivity', {
  'data|3-5': [{
      "username|1": ['舞小悦', '舞悦', '舞大悦', '悦悦'],
      portrait: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_liaotianjiemian_1.png',
      img: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_huodongtuijian_1.png'
    },
    {
      "username|1": ['舞小悦', '舞悦', '舞大悦', '悦悦'],
      portrait: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_shipingbofang_3.png',
      img: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_jingxuanwenzhang_4.png'
    }
  ]
})
// 文章详情
const articlepage = Mock.mock(host + 'love/articlepage', {
  username: '舞小悦',
  portrait: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_liaotianjiemian_1.png',
  img: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_huodongtuijian_1.png',
  fan: '217粉丝',
  dayimg: 'http://ot9lfn4ld.bkt.clouddn.com/icon_shipingbofang_2.png',
  daytxt: '9天前',
  lookimg: 'http://ot9lfn4ld.bkt.clouddn.com/icon_shipingbofang_3.png',
  looktxt: '3120',
  commentimg: 'http://ot9lfn4ld.bkt.clouddn.com/icon_shipingbofang_4.png',
  commenttxt: '30',
  loveimg: 'http://ot9lfn4ld.bkt.clouddn.com/icon_shipingbofang_6.png',
  lovetxt: '500',
  personcomment: [{
      username: '乌尔',
      portrait: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_BANNER_3.png',
      content: '喜欢这个产品',
      times: '20分钟前'
    },
    {
      username: '舞小悦',
      portrait: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_liaotianjiemian_1.png',
      content: '大爱，赞赞赞',
      times: '26分钟前'
    },
    {
      username: '舞小悦',
      portrait: 'http://ot9lfn4ld.bkt.clouddn.com/IMG_wpfaqidejindian_header3.png',
      content: '主播，么么哒',
      times: '29分钟前'
    }
  ]
})

// 验证码
const getyzm = Mock.mock(host + 'love/yzm', {
  'yzm|1': ['1234', 'drtf', 'rtyu', 'sxef', 'ijih']
})
const reg = Mock.mock(host + 'love/reg', {
  state: true,
  msg: "注册成功",
  info: {
    uname:"jean"
  }
})
export {
  data,
  banner,
  findlist,
  topic,
  beauty,
  commodity,
  sponsor,
  sponsorenter,
  tindex,
  blusher,
  showbeauty,
  showactivity,
  articlepage,
  getyzm
}
